package edu.xy.hm02_01;

import edu.xy.hm02_01.slice.*;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class MainAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        // 设置当前模块的主页面
        super.setMainRoute(MainAbilitySlice.class.getName());

        // 添加普通页面到主模块
        this.addActionRoute("mainabilityslice_01", MainAbilitySlice_01.class.getName());
        this.addActionRoute("mainabilityslice_02", MainAbilitySlice_02.class.getName());
        this.addActionRoute("mainabilityslice_03", MainAbilitySlice_03.class.getName());
        this.addActionRoute("mainabilityslice_04", MainAbilitySlice_04.class.getName());
        this.addActionRoute("mainabilityslice_05", MainAbilitySlice_05.class.getName());
    }
}
